﻿using HZYProject.Domain;
using System;
using System.Threading.Tasks;

namespace HZYProject.Service
{
    public interface IRoleService
    {
        /// <summary>
        /// 分页获取角色列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagedResultDto<Role>> GetPaginatedResult(GetRoleInput input);
        /// <summary>
        /// 获取单个角色数据包含 角色所拥有的权限
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        Role GetRole(Guid roleId);

        void FenPeiModule(Guid roleId, Guid[] moduels);
    }
}
